package com.ruoyi.Warehouse.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 卡牌库存表对象 cardinventory
 * 
 * @author ruoyi
 * @date 2025-06-16
 */
public class Cardinventory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long inventoryId;

    /**  */
    @Excel(name = "")
    private Long cardId;

    /**  */
    @Excel(name = "")
    private Long warehouseId;

    /**  */
    @Excel(name = "")
    private Long locationId;

    /**  */
    @Excel(name = "")
    private Long quantity;

    /** NM/SP/MP/HP/DMG */
    @Excel(name = "NM/SP/MP/HP/DMG")
    private String conditionGrade;

    /**  */
    @Excel(name = "")
    private String language;

    /** 0-非闪,1-闪卡 */
    @Excel(name = "0-非闪,1-闪卡")
    private Integer isFoil;

    /**  */
    @Excel(name = "")
    private BigDecimal purchasePrice;

    /**  */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "", width = 30, dateFormat = "yyyy-MM-dd")
    private Date purchaseDate;

    /**  */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastUpdated;

    public void setInventoryId(Long inventoryId) 
    {
        this.inventoryId = inventoryId;
    }

    public Long getInventoryId() 
    {
        return inventoryId;
    }

    public void setCardId(Long cardId) 
    {
        this.cardId = cardId;
    }

    public Long getCardId() 
    {
        return cardId;
    }

    public void setWarehouseId(Long warehouseId) 
    {
        this.warehouseId = warehouseId;
    }

    public Long getWarehouseId() 
    {
        return warehouseId;
    }

    public void setLocationId(Long locationId) 
    {
        this.locationId = locationId;
    }

    public Long getLocationId() 
    {
        return locationId;
    }

    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }

    public void setConditionGrade(String conditionGrade) 
    {
        this.conditionGrade = conditionGrade;
    }

    public String getConditionGrade() 
    {
        return conditionGrade;
    }

    public void setLanguage(String language) 
    {
        this.language = language;
    }

    public String getLanguage() 
    {
        return language;
    }

    public void setIsFoil(Integer isFoil) 
    {
        this.isFoil = isFoil;
    }

    public Integer getIsFoil() 
    {
        return isFoil;
    }

    public void setPurchasePrice(BigDecimal purchasePrice) 
    {
        this.purchasePrice = purchasePrice;
    }

    public BigDecimal getPurchasePrice() 
    {
        return purchasePrice;
    }

    public void setPurchaseDate(Date purchaseDate) 
    {
        this.purchaseDate = purchaseDate;
    }

    public Date getPurchaseDate() 
    {
        return purchaseDate;
    }

    public void setLastUpdated(Date lastUpdated) 
    {
        this.lastUpdated = lastUpdated;
    }

    public Date getLastUpdated() 
    {
        return lastUpdated;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("inventoryId", getInventoryId())
            .append("cardId", getCardId())
            .append("warehouseId", getWarehouseId())
            .append("locationId", getLocationId())
            .append("quantity", getQuantity())
            .append("conditionGrade", getConditionGrade())
            .append("language", getLanguage())
            .append("isFoil", getIsFoil())
            .append("purchasePrice", getPurchasePrice())
            .append("purchaseDate", getPurchaseDate())
            .append("lastUpdated", getLastUpdated())
            .toString();
    }
}
